﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo7
{
    class Animal
    {
        private int leg;
        
        public  void Eat()
        {
            Console.WriteLine("我能吃！");
        }
        public  void Sleep()
        {
            Console.WriteLine("我能睡！");
        }
        public  void Walk()
        {
            Console.WriteLine("我能走！");
        }
        public virtual void Cry()
        {
            Console.WriteLine("我能叫！");
        }
    }
}
